import MSE from './src/Message'
import LD from './src/Loading'
import UL from './src/Upload'
import CF from './src/Confirm'
import previewImage from './src/previewImage'
// 写 UI组件的
class App {
    constructor() {

    }
    Message(options) {
        new MSE(options);
    }

    Loading(options) {
        let loading = new LD(options);
        return loading
    }

    Upload(options) {
        return new UL(options);
    }

    Confirm(title,message,options) {
         return new CF(title,message,options).init();
    }

    PreviewImage(url,options={}) {
        return new previewImage(url,options)
    }
}
export default new App